Skip to content

feat(CT-46): Add deterministic wasm hash generation for deployments - #180

Merged
Qoder-Voidd merged 4 commits into
Akazajan:mainfrom
Timrossid:fix/ct-46-wasm-hash-generation
Jul 28, 2026
Merged

feat(CT-46): Add deterministic wasm hash generation for deployments#180
Qoder-Voidd merged 4 commits into
Akazajan:mainfrom
Timrossid:fix/ct-46-wasm-hash-generation

Conversation

@Timrossid

Copy link
Copy Markdown
Contributor

Summary

Adds deterministic wasm hash generation for deployments, making contract artifacts verifiable and reproducible.

Changes

  • scripts/generate-wasm-hash.sh: Wasm hash generation and verification tool with modes:
    • Default: hash existing wasm artifacts
    • --build: build and hash
    • --verify: verify stored hashes against current artifacts
    • --update-readme: generate markdown hash table for README
  • Tracks git commit, rustc version, toolchain, and manifest hash for reproducibility

Acceptance Criteria

  • Wasm artifacts produce stable hashes for the same build
  • Hashes are exposed/logged during deployment
  • Process is documented and consistent

Closes #125

- Create scripts/generate-wasm-hash.sh for reproducible wasm artifact tracking
- Generates SHA-256 hashes for all contract wasm artifacts
- Stores hashes in scripts/wasm-hashes.json with build metadata
- Supports --build, --verify, and --update-readme modes
- Tracks git commit, rustc version, toolchain, and manifest hash
- Verification mode detects unexpected artifact changes

Closes Akazajan#125
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Timrossid Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Qoder-Voidd Qoder-Voidd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Qoder-Voidd
Qoder-Voidd merged commit c003a45 into Akazajan:main Jul 28, 2026
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CT-46 — Add deterministic wasm hash generation for deployments

2 participants